﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataTier;
using DbLayer;

namespace BusinessTier
{

    public class LocationCtr
    {

        private static LocationCtr _instance = null;
        private IDbLocation _dbLocation = DbLocation.Instance;

        private LocationCtr()
        {
        }

        public static LocationCtr Instance
        {
            get
            {

                if (_instance == null)
                {
                    _instance = new LocationCtr();
                }

                return _instance;

            }
        }

        public IList<Location> GetAllLocations()
        {
            return _dbLocation.GetAllLocations();
        }

    }

}
